//after函数
function after (times,callback){
     return function (){
          if(--times===0){
              callback();
          }
     }
}

let fn = after(2,function(){
    console.log(123)
})